Techniques for Lightweight Generator Refactoring

نویسندگان

  • Holger Krahn
  • Bernhard Rumpe
چکیده

This paper presents an exercise to facilitate refactoring techniques not only on generated code, but also on generator templates by reusing existing refactoring techniques from the target language. Refactoring is particularly useful if not only the generated classes but also the template defining the result of the code generator can be adapted in a uniform treatment. We describe a simple demonstration prototype that illustrates our approach. The demonstration is based on the idea to define the templates for code generation themselves as compilable and therefore refactorable source code. However, this limits the directives embedded in the template used for code generation, as we have to embed those as comments. We explore how far this approach carries and where its limits are.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Techniques Enabling Generator Refactoring

This paper presents our approach to use refactoring techniques together with code generation. Refactoring is particularly useful if not only the generated classes but also the generator itself can be adapted in an automatic fashion. We have developed a simple demonstration prototype to illustrate this. The demonstration is based on a special technique where the template for the code generation ...

متن کامل

Nazhvan Pavilion in Isfahan, Construction Technics and an Experience for Building a Lightweight Structure

The Coastal area of Nazhvan is located at the riverside of Zayandehrūd River in the western part of Isfahan. In the gardens of this area which are mostly orchards, woodlands full of fruitless trees, owners have constructed architectural spaces and pavilions. One of the prominent architectural spaces within this territory is a mill known as “Asyāb-e Nazhvān or Hājjī”. There stands a two-floor pa...

متن کامل

A Lightweight Architecture Recovery Process

In this paper, we present an overview of a lightweight approach for software architecture recovery. The main advantages of the process are the lightweight recovery of architectural semantics, and the compatibility with the highly iterative adaptive development processes that involve extensive architectural refactorings.

متن کامل

Specification-Based Test Repair Using a Lightweight Formal Method

When a program evolves, its test suite must be modified to reflect changes in requirements or to account for new feature additions. This problem of modifying tests as a program evolves is termed test repair. Existing approaches either assume that updated implementation is correct, or assume that most test repairs require simply fixing compilation errors caused by refactoring of previously teste...

متن کامل

Nazhvan Pavilion in Isfahan, Construction Technics and an Experience for Building a Lightweight Structure

The Coastal area of Nazhvan is located at the riverside of Zayandehrūd River in the western part of Isfahan. In the gardens of this area which are mostly orchards, woodlands full of fruitless trees, owners have constructed architectural spaces and pavilions. One of the prominent architectural spaces within this territory is a mill known as “Asyāb-e Nazhvān or Hājjī”. There stands a two-floor pa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005